package com.cloud.consumer.feign.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: RuleConf
 * @Author: wl
 * @Date: 2021/11/23 14:12
 * @Description: TODO
 */
@Configuration
public class RuleConf {

    @Bean
    public IRule loadBalancedRule() {
//        return new MyRule();
        return new MyRule2();

    }
}
